#pragma once

class TextDraw : public base::_class
{
protected:
	HDC		_hDC;
	base::Rect		_margin;
	int				_lineHeiht;
	base::Font		_font,_titleFont;
	base::Color		_textColor;
public:
	TextDraw(void);
	~TextDraw(void);

	void SetDc(HDC hdc){_hDC = hdc;}
	void SetMargin(int left,int top,int right,int bottom);
	int Draw(LPCWSTR str,int len = -1);
};
